<?
include('../core/core.php');

Core::Init('Lp');

/**
 * Autoloader klas
 *
 * @param unknown_type $className
 */
function __autoload($className) {
	Core::LoadClass($className);

}
// Sciezki zapisujemy w ponizszym pliku
include("routes.php");
//$logger = LoggerManager::getLogger(isset($_SERVER['REQUEST_URI']) ? $_SERVER['REQUEST_URI'] : __FILE__);
Core::LoadSmarty();

$scripts = array();

Registry::Set('javascript', $scripts);

Router::$controllerMethodSeek = false;
Router::$popParamUnpaired = false;
Router::$reverseRoute = true;

$front = new FrontController();

$front->SetTitleDelimiter(' - ');
$front->AddTitle('Landing page');

$front->FlipTitle();

$front->Dispatch();

Profiler::debugInfo();
Core::Garbage();
